package com.itheima.example;

import java.util.*;

public class Example06 {
    public static void main(String[] args) {
        HashMap hashMap = new HashMap();
        hashMap.put("001","zhangsan");
        hashMap.put("002","lisi");
        hashMap.put("003","wnagwu");
        Set keySet=hashMap.keySet();
        Iterator iterator = keySet.iterator();
        while (iterator.hasNext()){
            Object key = iterator.next();
            Object value = hashMap.get(key);
            System.out.println(key+"="+value);
        }
    }
}
